import { createRouter, createWebHistory } from 'vue-router'
import FlowIndex from '@/views/flowIndex/index.vue'
import MobileDsigner from '@/views/formCreate/mobileDsigner/index.vue'
import PcDsigner from '@/views/formCreate/pcDsigner/index.vue'
import Index from '@/views/index/index.vue'
import ApplyMobile from '@/views/flowApply/mobile/index.vue'
import ApplyPc from '@/views/flowApply/pc/index.vue'
import ApproveMobile from '@/views/flowApprove/mobile/index.vue'
import ApprovePc from '@/views/flowApprove/pc/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/mobileDsigner',
      name: 'MobileDsigner',
      component: MobileDsigner
    },
    {
      path: '/pcDsigner',
      name: 'PcDsigner',
      component: PcDsigner
    },
    {
      path: '/flowIndex',
      name: 'FlowIndex',
      component: FlowIndex
    },
    {
      path: '/applyMobile',
      name: 'ApplyMobile',
      component: ApplyMobile
    },
    {
      path: '/applypc',
      name: 'ApplyPc',
      component: ApplyPc
    },
    {
      path: '/approveMobile',
      name: 'ApproveMobile',
      component: ApproveMobile
    },
    {
      path: '/approvepc',
      name: 'ApprovePc',
      component: ApprovePc
    }
  ]
})

export default router
